
var util = require("../../../utils/util.js"),
api = require("../../../utils/api.js"), 
app = getApp();
Page({
    data: {
        articleDetail:{}
    },
    onLoad: function(e) {
        e.id && this.bannerDetail(e.id)
    },
    async bannerDetail(id){
        let {data}=await api.default.bannerDetail({id});
        if(data){
            data.create_time=util.formatTime(new Date(data.create_time*1000))
            this.setData({articleDetail:data})
        }
    },
});